<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <input type="button" value="刘德华" id="ldh">
  <input type="button" value="张学友" id="zxy">
  <img src="#" alt="" title="">
</body>
<script>
  /* 
    修改属性
  */
  let ldh = document.getElementById("ldh");
  let zxy = document.getElementById("zxy");
  let img = document.querySelector("img");
  zxy.addEventListener("click", () => {
    img.src = "image/zxy.img";
  });
</script>

</html>